package test0ne.设计模式.备忘录;

public class Client {
    public static void main(String[] args) {
        Doc doc = new Doc("《AI的觉醒》");
        Editor editor = new Editor(doc);

        editor.append("第一章");

        editor.append("第二章");

        editor.delete();

        editor.undo();
    }
}
